package cn.wonderland.service.impl;

import cn.wonderland.domain.User;
import cn.wonderland.mapper.UserMapper;
import cn.wonderland.service.UserService;
import cn.wonderland.utils.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

    @Override
    public User getUserByUserId(Long id) {
        return userMapper.getUserByUserId(id);
    }
}
